#!/bin/bash

showArray(){
    local newarray
    newarray=(`echo "$@"`)
    echo "The new array value is ${newarray[*]}"
}

myarray=(1,2,3,3,4,5,6,7,8)

echo "The original array is ${myarray[*]}"

showArray ${myarray[*]}




